<?php
$menus = $this->get('menus');
?>
<?php if($menus) : ?>
<section class="edu-layout-nav">
	<ul>
		<?php foreach ($menus as $menu => $submenus ) : ?>
		<?php if(is_array($submenus)) : ?>
		<li><h4><?php echo $menu ?></h4>
		<ul>
			<?php foreach ($submenus as $submenu => $link) :?>
			<li><a href="<?php echo $link ?>"><?php echo $submenu ?></a></li>
			<?php	endforeach; ?>	
		</ul>
		</li>
		<?php else : ?>
		<li><h4><a href="<?php echo $submenus ?>"><?php echo $menu ?></a></h4></li>
		<?php endif ?>
		<?php	endforeach; ?>
	</ul>
</section>
<?php endif ?>